<?php

namespace app\admin\validate;

use think\Validate;

class RoleValidate extends Validate
{
    protected $rule = [
        'code' => 'require',
        'name' => 'require',
        'note' => 'require',
        'sort' => 'require',
    ];
    protected $message = [
        'code.require' => '请输入角色标识',
        'name.require' => '请输入角色名称',
        'note.require' => '请输入角色备注',
        'sort.require' => '请输入排序',
    ];

}